from ..database import database as db
from sqlalchemy import Column, String, Integer, DateTime, func


class Token(db.Model):
    access_token = Column(String(200), primary_key=True)
    refresh_token = Column(String(200))
    token_type = Column(String(40))
    scopes = Column(String(400))
    expires = Column(DateTime, default=func.now())
